//
//  RentManager.h
//  RentTable
//
//  Created by xchuan xchuan on 2024/12/2.
//

#import <Foundation/Foundation.h>
#import "RentModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RentManager : NSObject

+ (instancetype)sharedManager;
- (void)loadRentDataFromFile;
- (RentModel *)getRentModelWithRentId:(NSInteger)rentId;
- (void)updateRentModel:(RentModel *)model;
- (void)saveRentDataToFile;

- (NSMutableArray<RentModel *> *)getAllRentData;

//获取 收藏
- (NSArray<RentModel *> *)getAllRentModelsWithCollectionTrue;

//获取购物车
- (NSArray<RentModel *> *)getAllRentModelsWithCartTrue;

// 获取所有九球租赁模型
- (NSMutableArray<RentModel *> *)getAllRentModelsWithRentTypeNineBall;

// 获取所有斯诺克租赁模型
- (NSMutableArray<RentModel *> *)getAllRentModelsWithRentTypeSnooker;

// 获取所有中八台球租赁模型
- (NSMutableArray<RentModel *> *)getAllRentModelsWithRentTypeEightBall;

@end

NS_ASSUME_NONNULL_END
